<template>
  <div class="mulit-invite-main">
    <div class="mulit-invite-top-head">
      <div class="head-title">
        批量群邀请
        <span class="alert-content">
          <span
            >功能特色：把一个人拉进多个群，如需把多个人拉进一个群，请前往
            <span style="color: #3070ff">批量拉群</span></span
          >
        </span>
      </div>
      <!-- <div class="header-right">
        <el-button size="small" @click="dialogVisible = true"
          >批量设置</el-button
        >
      </div> -->
    </div>
    <div class="mulit-invite-container">
      <div class="mulit-invite-tabs">
        <div class="custom-tabs">
          <div
            :class="['tab-item', dateType === 1 && 'active']"
            @click="onChangeDateType(1)"
          >
            近2周记录
          </div>
          <div
            :class="['tab-item', dateType === 2 && 'active']"
            @click="onChangeDateType(2)"
          >
            2周前记录
          </div>
        </div>
      </div>
      <MulitinvitePage :pageType='dateType' />
    </div>
  </div>
</template>
<script>
import MulitinvitePage from './MulitinvitePage.vue'
export default {
  data() {
    return {
      dateType: 1,
    };
  },
  components: {
    MulitinvitePage
  },
  methods: {
    onChangeDateType(type) {
      this.dateType = type;
    },
  },
};
</script>
<style lang="scss" scoped>
.mulit-invite-main {
  .mulit-invite-top-head {
    height: 46px;
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    .head-title {
      font-size: 14px;
      line-height: 22px;
      font-weight: 500;
      .alert-content {
        padding: 0 10px;
        font-weight: 400;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.45);
      }
    }
    .divider {
      margin: 0 20px;
      width: 1px;
      height: 16px;
    }
  }
  .mulit-invite-container {
    padding: 16px;
    height: calc(100vh - 48px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    .mulit-invite-tabs {
      height: 46px;
      background: #fff;
      border-bottom: 1px solid #e9e9e9;
      position: sticky;
      top: 0;
      z-index: 8;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 0 20px;
      .custom-tabs {
        display: flex;
        align-items: center;
        height: 100%;
        .tab-item {
          position: relative;
          height: 100%;
          display: flex;
          align-items: center;
          font-size: 14px;
          font-weight: 500;
          padding: 12px 0;
          color: rgba(0, 0, 0, 0.65);
          cursor: pointer;
          &:hover {
            color: #5993ff;
          }
          &.active {
            color: #3070ff;
            text-shadow: 0 0 0.25px currentColor;
            &::after {
              content: "";
              position: absolute;
              bottom: -1px;
              left: 0;
              right: 0;
              width: 100%;
              height: 2px;
              background: #3070ff;
            }
          }
          &:not(:first-child) {
            margin-left: 32px;
          }
        }
      }
    }
  }
}
</style>